using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using ShkSimulation.desktop.component.tools;

namespace ShkSimulation.desktop {
	
	static class Program {
		
		[DllImport("kernel32.dll")] 
		static extern bool AllocConsole();
		[DllImport("kernel32.dll")]
		static extern bool FreeConsole();
		
		[STAThread]
		static void Main() {
			// AllocConsole();
			// Test(null);
			Console.SetOut(WinformConsoleTextWriter.Instance);
			Application.SetHighDpiMode(HighDpiMode.SystemAware);
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new ShkSimulationForm());
			// FreeConsole();
		}
	}
}